<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>axios</title>
</head>

<body>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        axios.get("http://www.nmc.cn/rest/weather?stationid=54616&_=1646997794950")
            .then(function (response) {
                console.log(response.data);
            })
            .catch(function (error) {
                console.log(error);
            });

        axios.post("http://www.nmc.cn/rest/weather", "stationid=54616&_=1646997794950")
            .then(function (response) {
                console.log(response.data);
            }).catch(function (error) {
                console.log(error);
            });
    </script>
</body>

</html>